package cn.lau.core.db.dao.entity;

import javax.persistence.*;

@Entity
@Table(name = "tb_type")
public class Type {

    // ------------------------
    // PRIVATE FIELDS
    // ------------------------

    @Id
    @Column(name="id")
    private String id;

//    @ManyToOne(cascade = CascadeType.PERSIST)
//    @JoinColumn(name = "pid")
//    private Type test;
    @Column(name="pid")
    private String pid;

    @Column(name="cat_path")
    private String catPath;

    @Column(name="age")
    private String age;

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getPid() {
        return pid;
    }

    public void setPid(String pid) {
        this.pid = pid;
    }

    public String getCatPath() {
        return catPath;
    }

    public void setCatPath(String catPath) {
        this.catPath = catPath;
    }

    public String getAge() {
        return age;
    }

    public void setAge(String age) {
        this.age = age;
    }
}